{% extends 'base.html' %}

{% load crispy_forms_tags %}


{% block content %}
<h1 class="mt-5 p-3">Страница входа</h1>
{% if not user.is_authenticated %}
        {% if messages %}
                {% for message in messages %}
                    <div class="alert alert-info alert-dismissible fade show" role="alert">
                    Вы вышли из аккаунта
                    <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                {% endfor %}
        {% endif %}
{% endif %}
<form method="post">
        <div class="row mt-3">
            <div class="col mt-4">
                {% csrf_token %}
                {{ form|crispy }}
            </div>
            <div class="row">
                <div class="col">
                    <button type="submit" class="btn btn-primary" value="Sign up">Submit</button>
                </div>
            </div>
        </div>
</form>
{% endblock %}